package com.house.twohouse.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.house.common.utils.PageUtils;
import com.house.common.utils.Query;

import com.house.twohouse.dao.TwohouseDao;
import com.house.twohouse.entity.TwohouseEntity;
import com.house.twohouse.service.TwohouseService;


@Service("twohouseService")
public class TwohouseServiceImpl extends ServiceImpl<TwohouseDao, TwohouseEntity> implements TwohouseService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TwohouseEntity> page = this.page(
                new Query<TwohouseEntity>().getPage(params),
                new QueryWrapper<TwohouseEntity>()
        );

        return new PageUtils(page);
    }

}